07. Variable Scope

Read through this code snippet:

egg_count = 0

def buy_eggs():
    egg_count += 12 # purchase a dozen eggs

buy_eggs()

What is the result of running this code? If you aren't sure, try running it on your own computer!

SOLUTION: An error occurs